package com.lz.common.utils.test;

import lombok.Data;

import javax.validation.constraints.AssertTrue;

@Data
@AssertTrue
public class hash {

    private String name;

    private String age;

    @Override
    public boolean equals(Object obj) {
        if (obj instanceof hash) {
            obj = (hash) obj;
            if (((hash) obj).name == this.name) {
                return true;
            }
        }
        return false;
    }


}
